package com.ssyan.builder.improve;

/**
 * @author ssyan
 * @Description TODO
 * @create 2021/8/28 2:58
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        //盖普通房子
        CommonHouse commonHouse = new CommonHouse();
        //准备创建房子的指挥者
        HouseDirector houseDirector = new HouseDirector(commonHouse);

        //完成盖房子，返回产品
        House house = houseDirector.constructHouse();

        System.out.println("------------------");
        houseDirector.setHouseBuilder(new HighBuilding());
        houseDirector.constructHouse();
    }
}
